import request from '../utils/request';


const url="http://public-api-v1.aspirantzhang.com";

export async function qryAllusers(data) {
  return request('http://public-api-v1.aspirantzhang.com/users', {
    data: data
  });
}

export async function addUserInfo(data) {
  return request(url+'/users', {
    method: 'POST',
    data: data
  });
}

export async function modifyUserInfo(data) {
  return request(url+'/users/10', {
    method: 'POST',
    data: data
  });
}

export async function modifyUserEmail(data) {
  return request(url+'/users/10', {
    method: 'POST',
    data: data
  });
}

export async function deleteUserInfo(data) {
  return request(url+'/users/10', {
    method: 'POST',
    data: data
  });
}
